<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$kodemk=$_POST['kodemk'];
	$nama=$_POST['nama'];
	$sks=$_POST['sks'];
	$prasyaratsks=$_POST['prasyaratsks'];
	$prasyarat1=$_POST['prasyarat1'];
	$prasyarat2=$_POST['prasyarat2'];
	$prasyarat3=$_POST['prasyarat3'];
	$prasyarat4=$_POST['prasyarat4'];
	$prasyarat5=$_POST['prasyarat5'];
	$prasyarat6=$_POST['prasyarat6'];
	$prasyarat7=$_POST['prasyarat7'];
	$prasyarat8=$_POST['prasyarat8'];
	$prasyarat9=$_POST['prasyarat9'];
	$prasyarat10=$_POST['prasyarat10'];
	$prasyaratgrade=$_POST['prasyaratgrade'];
	$query=mysql_query("insert into mk111 values('$kodemk','$nama','$sks','$prasyaratsks','$prasyarat1','$prasyarat2','$prasyarat3',
	'$prasyarat4','$prasyarat5','$prasyarat6','$prasyarat7','$prasyarat8','$prasyarat9','$prasyarat10','$prasyaratgrade');");
	
	if($query)
	{
		echo "Data berhasil dimasukkan<br>";
		echo "<a href='menu_mata_kul.php'>Back To Menu Mata Kuliah</a><br>";
		echo "<a href='menu_admin.php'>Back To Menu Admin</a>";
	}
	else
	{
		echo "Data gagal dimasukkan<br>";
		echo "<a href='menu_mata_kul.php'>Back To Menu Mata Kuliah</a><br>";
		echo "<a href='menu_admin.php'>Back To Menu Admin</a>";
	}
	}
	else
	header("Location:index.php");
?>	